package com.guinea.system.service;

import java.io.Serializable;
import java.util.List;
import com.guinea.core.orm.HibernateDao;
import com.guinea.core.service.EntityService;
import com.guinea.system.dao.ResRoleRelDao;
import com.guinea.system.entity.ResRoleRel;

public class ResRoleRelService extends EntityService {
	private ResRoleRelDao resRoleRelDao;

	public ResRoleRel getResRoleRel(Serializable id) {
		return (ResRoleRel) getResRoleRelDao().get(id);
	}

	public HibernateDao getEntityDao() {
		return resRoleRelDao;
	}

	public ResRoleRelDao getResRoleRelDao() {
		return resRoleRelDao;
	}

	public void setResRoleRelDao(ResRoleRelDao resRoleRelDao) {
		this.resRoleRelDao = resRoleRelDao;
	}

	public List getByRoleResource(Long roleId, Long resourceId) {
		return getResRoleRelDao().getByRoleResource(roleId, resourceId);
	}
	
}
